using LeaRun.Application.Entity.SystemManage;
using LeaRun.Util.WebControl;
using System;
using System.Collections.Generic;
using System.Data;

namespace LeaRun.Application.IService.SystemManage
{
	public interface DataSourceIService
	{
		IEnumerable<DataSourceEntity> GetPageList(Pagination pagination, string queryJson);
		IEnumerable<DataSourceEntity> GetList(string queryJson);
		DataSourceEntity GetEntity(string keyValue);
		string TestData(string dbtype, string connection, string sql);
		DataTable GetTableDataList(string dataBaseLinkId, string tableName);
		void RemoveForm(string keyValue);
		void SaveForm(string keyValue, DataSourceEntity entity);
	}
}
